<?php namespace Home\Controller;
use Common\Model\Commod;
use Hdphp\Controller\Controller;

class ThemeController extends  Controller{
    public function iphone(){
        $commodModel=new Commod();
        $commodData=$commodModel->where("shop_brand_bid=12")->limit(10)->get();
        View::with('commodData',$commodData);
        View::make();
    }

    public function samsung(){
        $commodModel=new Commod();
        $commodData=$commodModel->where("shop_brand_bid=11")->limit(10)->get();
        View::with('commodData',$commodData);
        View::make();
    }

    public function mi(){
        $commodModel=new Commod();
        $commodData=$commodModel->where("shop_brand_bid=3")->limit(10)->get();
        View::with('commodData',$commodData);
        View::make();
    }

    public function meizu(){
        $commodModel=new Commod();
        $commodData=$commodModel->where("shop_brand_bid=4")->limit(10)->get();
        View::with('commodData',$commodData);
        View::make();
    }

    public function huawei(){
        $commodModel=new Commod();
        $commodData=$commodModel->where("shop_brand_bid=6")->limit(10)->get();
        View::with('commodData',$commodData);
        View::make();
    }
}